<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stick</title>
</head>
<body>
    <div class="title title100">Big Title</div>
    <div class="box box1">
        <div class="title title1">标题1</div>
        <div class="content content1">内容</div>
    </div>
    <div class="box box2">
        <div class="title title2">标题2</div>
        <div class="content content2">box2</div>
    </div>
    <div class="box box4">box4</div>
    <div class="box box3">
        <div class="title title3">标题3</div>
        <div class="content content3">box3</div>
    </div>
    <div class="box box4">box4</div>
    <div class="box box4">box4</div>
    <div class="box box4">box4</div>
    <div class="box box4">box4</div>
</body>
<style>
    .box {
        height: 400px;
    }
    .title {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        /* text-align: center; */
        background-color: #8090E1;
        color: #fff;
        font-size: 24px;
    }
    .title1 {
        top: 60px;
        height: 60px;
    }
    .title2 {
        top: 20px;
        height: 40px;
    }
    .title3 {
        top: 0px;
        height: 50px;
    }
    .title100 {
        top: 0px;
        height: 100px;
        background-color: #53A389;
    }
</style>
</html>